{% init show_menu = True %}
{% init show_nav  = True %}
{% init search_placeholder = "搜索或指令" %}
{% init search_action = "/search/search" %}
{% init nav_type = "default" %}

{% if show_menu and show_nav and xconfig.get_system_config("node_role") == "follower" %}
<div class="row warn">
  <div class="x-center">
    当前系统以从节点身份运行，请勿编辑
    <a href="/system/sync?p=home">查看同步状态</a>
  </div>
</div>
{% end %}

{% if show_menu and show_nav %}
<div class="nav">
  <!-- 保持对称 -->
  <div class="nav-container">
    <div class="menu-box float-left">
      <ul class="nav-ul">
        {% for nav in _nav_list %}
          {% if nav.is_visible() %}
            <li class="nav-item">
              <a href="{{nav.url}}">{{T(nav.text)}}</a>
            </li>
          {% end %}
        {% end %}
      </ul>
    </div>

    <div class="nav-search">
      <form id="searchForm" method="GET" action="{{search_action}}">
        {% include common/search_box.html %}
      </form>
    </div>
  </div>
</div>
{% end %}


<div class="toolbar homepage hide">
  <div class="action">
    回到<br/>顶部
  </div>
</div>